package com.example.gui;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.webkit.WebView;
import android.widget.TextView;

public class AuthorActivity extends AppCompatActivity {

    private WebView webView;
    private TextView detailsTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_author);

        webView = findViewById(R.id.webview);
        detailsTextView = findViewById(R.id.details_textview);

        // 加载网页
        webView.loadUrl("file:///android_asset/bilbil.html");

        // 设置作者详情
        String authorDetails = "罗春阳\n219074247\n软212";
        detailsTextView.setText(authorDetails);
    }
}
